export default {
  // 输入框
  input: [
    {
      label: 'ID',
      prop: 'id',
      type: 'input',
      disabled: true
    },
    {
      label: '名称',
      prop: 'label',
      type: 'input',
      placeholder: '必填'
    },
    {
      label: '占位提示',
      prop: 'placeholder',
      type: 'input'
    },
    {
      label: '默认',
      prop: 'value',
      type: 'input',
      disabled: true
    },
    {
      label: '可清除',
      prop: 'clearable',
      type: 'boole'
    },
    {
      label: '禁用',
      prop: 'disabled',
      type: 'boole'
    },
    {
      label: '只读',
      prop: 'readonly',
      type: 'boole'
    },
    {
      label: '删除',
      prop: '',
      type: 'button',
      event: 'deleteHis',
      style: {
        icon: 'el-icon-delete',
        type: 'danger'
      }
    }
  ],
  // 下拉框
  select: [
    {
      label: 'ID',
      prop: 'id',
      type: 'input',
      disabled: true
    },
    {
      label: '名称',
      prop: 'label',
      type: 'input'
    },
    {
      label: '占位提示',
      prop: 'placeholder',
      type: 'input'
    },
    {
      label: '默认',
      prop: 'value',
      type: 'input',
      disabled: true
    },
    {
      label: '可清除',
      prop: 'clearable',
      type: 'boole'
    },
    {
      label: '数据字典',
      prop: 'option',
      type: 'dictionaries'
    },
    {
      label: '删除',
      prop: '',
      type: 'button',
      event: 'deleteHis',
      style: {
        icon: 'el-icon-delete',
        type: 'danger'
      }
    }
  ],
  // 时间选择
  timePicker: [
    {
      label: 'ID',
      prop: 'id',
      type: 'input',
      disabled: true
    },
    {
      label: '名称',
      prop: 'label',
      type: 'input'
    },
    {
      label: '占位提示',
      prop: 'placeholder',
      type: 'input'
    },
    {
      label: '默认',
      prop: 'value',
      type: 'input',
      disabled: true
    },
    {
      label: '可清除',
      prop: 'clearable',
      type: 'boole'
    },
    {
      label: '显示格式',
      prop: 'format',
      type: 'input',
      disabled: true
    },
    {
      label: '传输格式',
      prop: 'valueFormat',
      type: 'input',
      disabled: true
    },
    {
      label: '删除',
      prop: '',
      type: 'button',
      event: 'deleteHis',
      style: {
        icon: 'el-icon-delete',
        type: 'danger'
      }
    }
  ],
  // 时间范围
  timeQuantum: [
    {
      label: 'ID',
      prop: 'id',
      type: 'input',
      disabled: true
    },
    {
      label: '名称',
      prop: 'label',
      type: 'input'
    },
    {
      label: '可清除',
      prop: 'clearable',
      type: 'boole'
    },
    {
      label: '显示格式',
      prop: 'format',
      type: 'input',
      disabled: true
    },
    {
      label: '传输格式',
      prop: 'valueFormat',
      type: 'input',
      disabled: true
    },
    {
      label: '开始显示',
      prop: 'placeholderStart',
      type: 'input'
    },
    {
      label: '结束显示',
      prop: 'placeholderEnd',
      type: 'input'
    },
    {
      label: '符号显示',
      prop: 'placeholderCenter',
      type: 'input'
    },
    {
      label: '删除',
      prop: '',
      type: 'button',
      event: 'deleteHis',
      style: {
        icon: 'el-icon-delete',
        type: 'danger'
      }
    }
  ],
  // 按钮
  button: [
    {
      label: 'ID',
      prop: 'id',
      type: 'input',
      disabled: true
    },
    {
      label: '名称',
      prop: 'label',
      type: 'input'
    },
    {
      label: '类型',
      prop: 'type',
      type: 'select',
      options: [
        { id: 1, value: '', label: '镂空按钮' },
        { id: 2, value: 'primary', label: '主要按钮' },
        { id: 3, value: 'success', label: '成功按钮' },
        { id: 4, value: 'info', label: '信息按钮' },
        { id: 5, value: 'warning', label: '警告按钮' },
        { id: 6, value: 'danger', label: '危险按钮' }
      ]
    },
    {
      label: '图标',
      prop: 'icon',
      type: 'input',
      readonly: true,
      button: '图标',
      buttonEvent: 'openIconsDialog'
    },
    {
      label: '禁用',
      prop: 'disabled',
      type: 'boole'
    },
    {
      label: '圆形按钮',
      prop: 'circle',
      type: 'boole'
    },
    {
      label: '删除',
      prop: '',
      type: 'button',
      event: 'deleteHis',
      style: {
        icon: 'el-icon-delete',
        type: 'danger'
      }
    }
  ],
  // 换行
  br: [
    {
      label: 'ID',
      prop: 'id',
      type: 'input',
      disabled: true
    },
    {
      label: '删除',
      prop: '',
      type: 'button',
      event: 'deleteHis',
      style: {
        icon: 'el-icon-delete',
        type: 'danger'
      }
    }
  ],
  // 横线
  hr: [
    {
      label: 'ID',
      prop: 'id',
      type: 'input',
      disabled: true
    },
    {
      label: '删除',
      prop: '',
      type: 'button',
      event: 'deleteHis',
      style: {
        icon: 'el-icon-delete',
        type: 'danger'
      }
    }
  ],
  columnComponents: [
    {
      label: 'ID',
      prop: 'id',
      type: 'input',
      disabled: true
    },
    {
      label: '属性',
      prop: 'prop',
      type: 'input',
      disabled: true
    },
    {
      label: '名称',
      prop: 'label',
      type: 'input'
    },
    {
      label: '宽度',
      prop: 'width',
      type: 'input',
      placeholder: '支持数字及px'
    },
    {
      label: '时间过滤',
      prop: 'timeFilte',
      type: 'input',
      placeholder: '请输入时间格式'
    },
    {
      label: '长度自适应',
      prop: 'showOverflowTooltip',
      type: 'boole'
    },
    {
      label: '对其方式',
      prop: 'align',
      type: 'select',
      options: [
        { id: 1, label: 'left', value: 'left' },
        { id: 2, label: 'center', value: 'center' },
        { id: 3, label: 'right', value: 'right' }
      ]
    },
    {
      label: '数据字典',
      prop: 'dictFilte',
      type: 'dictionaries'
    },
    {
      label: '删除字段',
      prop: '',
      type: 'button',
      event: 'deleteCol',
      style: {
        icon: 'el-icon-delete',
        type: 'danger'
      }
    }
  ]
}
